<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<jsp:useBean id="event" scope="session" class="com.asaga.tools.Event_StubImpl" />
<jsp:useBean id="client" scope="session" class="com.asaga.tools.SystemClient_StubImpl" />
<jsp:useBean id="location" scope="session" class="com.asaga.tools.Location_StubImpl" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<% 
String username = (String)session.getAttribute("username");
if(username==null){
    response.sendRedirect("login.jsp?message=Please log in again.");
}
%>

<html>
    <%@ include file="header.jsp" %>
    <body>
        <div id="container">
            <%@ include file="topNav.jsp" %>
            <%@ include file="leftside.jsp" %>
            <%@ include file="rightside.jsp" %>
            <div id="content">
                <h2>
                    WELCOME, <%=username%>! (<a href="AutismSiteMasterController?action=logoff">Logout</a>)
                </h2>
                          
         <h4 class="heading">Verify Event</h3>
        <p id="warning"><jsp:getProperty name="event" property="warningMessage" /></p>
        <form method="get" action="AutismSiteMasterController">
            <table class="eventForm">
                <tr><td>
                        Event Title:
                    </td>
                    <td><jsp:getProperty name="event" property="title" />
                    </td>
                </tr>
                <tr><td>
                        Start Date:
                    </td>
                    <td><jsp:getProperty name="event" property="startDate" />
                    </td>
                </tr>
                <tr><td>
                        End Date:
                    </td>
                    <td><jsp:getProperty name="event" property="endDate" />
                    </td>
                </tr>
                <tr><td>
                        Start Time:
                    </td>
                    <td><jsp:getProperty name="event" property="startTime" />
                    </td>
                </tr>
                <tr><td>
                        End Time:
                    </td>
                    <td><jsp:getProperty name="event" property="endTime" />
                    </td>
                </tr>
                <tr><td>Location Name:
                    </td>
                    <td><jsp:getProperty name="location" property="title" />
                    </td>
                </tr>
                <tr><td>
                        Street Address:
                    </td>
                    <td><jsp:getProperty name="location" property="addr1" />
                    </td>
                </tr>
                <tr><td>
                        Address Line 2:
                    </td>
                    <td><jsp:getProperty name="location" property="addr2" />
                    </td>
                </tr>
                <tr><td>
                        City:
                    </td>
                    <td><jsp:getProperty name="location" property="city" />
                    </td>
                </tr>
                <tr><td>
                        State:
                    </td>
                    <td><jsp:getProperty name="location" property="state" />
                    </td>
                </tr>
                <tr><td>
                        Zip:
                    </td>
                    <td><jsp:getProperty name="location" property="zip" />
                    </td>
                </tr>
                <tr><td>
                        Location Website:
                    </td>
                    <td><jsp:getProperty name="location" property="website" />
                    </td>
                </tr>
                <tr><td>
                        Contact Name:
                    </td>
                    <td><jsp:getProperty name="location" property="contactName" />
                    </td>
                </tr>
                <tr><td>
                        Contact Email:
                    </td>
                    <td><jsp:getProperty name="location" property="contactEmail" />
                    </td>
                </tr>
                <tr><td>
                        <input type="hidden" name="action" value="verifyevent" />
                        <input type="submit" value="Yes" name="submit" />
                        <input type="submit" value="No" name="submit" />
                </td>
               </tr>
            </table>  
        </form>
                
            </div>
            <%@ include file="footer.html" %>
        </div>       
    </body>
</html>
